import pathlib
import cv2
import numpy as np
from DrissionPage import ChromiumPage, ChromiumOptions
from DrissionPage.common import Actions
from DrissionPage.errors import AlertExistsError
from DrissionPage.common import Keys
import time
from datetime import datetime, timedelta
from login import login
from main import usernames5, usernames1
from 滑块验证码 import slider_img
import pickle
from pathlib import Path

co = ChromiumOptions()
co.set_paths(local_port=9225, user_data_path=r"C:\15867710780")
page = ChromiumPage(co)
datetime = datetime.now() - timedelta(days=1)
date = datetime.strftime("%Y-%m-%d")
downpath = r'C:\filedownloads'
page.set.download_path(downpath)
店铺eles = page.eles('.index_introName__fRtLx')
店铺_list = [i.text for i in 店铺eles]
print(店铺_list)